class Admin::AttachmentsController < ApplicationController
  def render_attachment
    @attachment = Attachment.find(params[:id])
    send_data @attachment.data, :filename => @attachment.name, :type => @attachment.content_type unless @attachment.nil?
  end
end
